window.onload = function () {
    const markdownDivs = document.querySelectorAll('.markdown-content');

    markdownDivs.forEach(div => {
        const id = div.getAttribute('id');
        const markdownFilePath = `./markdown/${id}.md`;

        fetch(markdownFilePath).then(response => {
            return response.text();
        }).then(markdownText => {
            div.innerHTML = marked.parse(markdownText);
        });

        div.setAttribute("background-color","#ffffff");
    });
};
